Range

Function

This API is used to get the auto restart page parameter range.

Request Message

None.

Sample:

POST /API/Maintenance/AutoReboot/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
auto_rebootboolAutomatic restart switch.Automatic maintenance switch..
period_mode"EveryDay",
"EveryWeek",
"EveryMonth"
stringThe model of the maintenance cycle.
week"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun"
stringWeekdays of the week.(When MaintainPeriod is Week)
day1~31intDay of months.(When MaintainPeriod is Month)
timestringRestart time.Format: hours : minutes(Each digit must be written with two digits)
maintenance_interval"1 Day",
"7 Day",
"30 Day"
stringThe automatic maintenance period mode indicates the interval of days(cloud dedicated)
maintenance_time"00:00-02:00",
"02:00-04:00",
"04:00-06:00",
"06:00-08:00",
"08:00-10:00",
"10:00-12:00",
"12:00-14:00",
"14:00-16:00",
"16:00-18:00",
"18:00-20:00",
"20:00-22:00",
"22:00-24:00"
stringAutomatic maintenance period(cloud dedicated)
secondary_authenticationboolOn the web side, this field is used to determine whether manual restart should transmit the admin password for authentication.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "auto_reboot": {"type": "bool"},
        "maintenance_interval": {
            "type": "string",
            "items": [
                "1 Day",
                "7 Day",
                "30 Day"
            ]
        },
        "maintenance_time": {
            "type": "string",
            "items": [
                "00:00-02:00",
                "02:00-04:00",
                "04:00-06:00",
                "06:00-08:00",
                "08:00-10:00",
                "10:00-12:00",
                "12:00-14:00",
                "14:00-16:00",
                "16:00-18:00",
                "18:00-20:00",
                "20:00-22:00",
                "22:00-24:00"
            ]
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.